//
//  HSYViewController.m
//  HSYCustomNavigationController
//
//  Created by key on 2017/2/9.
//  Copyright © 2017年 Scho.CustomNavigationController.Demo. All rights reserved.
//

#import "HSYViewController.h"
#import "MacroFaile.h"
#import "HSYNavigationBar.h"
#import "HSYNavigationItem.h"

@interface HSYViewController ()

@property (nonatomic, strong) HSYNavigationBar *navigationBar;

@end

@implementation HSYViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    HSYNavigationItem *backItem = [[HSYNavigationItem alloc] initWithItemTitle:HSYLocalizedString(@"返回") itemImage:[UIImage imageNamed:@"btn_navBack_nor"] itemHightImage:[UIImage imageNamed:@"btn_navBack_pre"]];
    self.navigationBar = [[HSYNavigationBar alloc] initWithLeftItems:@[backItem]];
    [self.view addSubview:self.navigationBar];
    
    _realView = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.navigationBar.frame), CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame) - CGRectGetMaxY(self.navigationBar.frame))];
    self.realView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.realView];
    // Do any additional setup after loading the view.
}

- (void)navigationBarTitle:(NSString *)realTitle
{
    if (realTitle.length == 0) {
        return;
    }
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
